package com.iceengine.j3d.main;

/**
 *
 * @author penguin
 */
public class BasicGameThread implements Runnable {
    private BasicGame game;
    public BasicGameThread(BasicGame theGame)
    {
        game = theGame;
    }
    public void run()
    {
        game.init();
        game.loadContent();
        while(game.isRunning())
        {
            game.update();
            game.draw();
            IceEngine.update();
        }
        IceEngine.killEngine();
    }
}
